package com.tscnd.core.web.webservice.ws.impl;

import javax.jws.WebService;

import com.tscnd.core.web.webservice.ws.IHelloWordWs;
import com.tscnd.core.web.webservice.ws.test.RequestMessage;
import com.tscnd.core.web.webservice.ws.test.ResponseMessage;

@WebService(targetNamespace="http://ws.webservice.web.core.tscnd.com/",endpointInterface = "com.tscnd.core.web.webservice.ws.IHelloWordWs")
public class HelloWordWsImpl implements IHelloWordWs{
	@Override
	public String helloWord() {
		
		return "helloword";
	}

	@Override
	public int add(int a, int b) {
		int c=a+b;
		System.out.println(c);
		return c;
	}

	@Override
	public ResponseMessage doHandler(RequestMessage reqMsg) {
		ResponseMessage responseMessage=new ResponseMessage();
		if(reqMsg==null){
			throw new RuntimeException("reqMsg不能为空");
		}
		
		System.out.println(reqMsg.getChannelCode());
		return responseMessage;
	}



}
